import Vue from 'vue'
import App from './App'
import store from 'store/index.js'
Vue.config.productionTip = false

App.mpType = 'app'

Vue.filter('formatCount',function(val){
	if(val >= 10000 && val <= 100000000 ) {
		val /= 1000;
		return val.toFixed(1) + '万'; 
	} else if(val > 100000000) {
		val /= 100000000;
		return val.toFixed(1) + '亿';
	} else {
		return val;
	}
})
Vue.filter('formatTime',function(val){
	let date = new Date(val);
	return date.getFullYear() + '年' + (date.getMonth() + 1) + '月' + date.getDate() + '日';
})
const app = new Vue({
    ...App,
	store
})
app.$mount()
